package main.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;

import javax.persistence.*;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * This code is generated
 */
@Entity
@javax.persistence.Table(name="main_shangpin1")
public class Shangpin1 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid2")
	@Column(name = "fid"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fid ;

	@Column(name = "fmingcheng"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fmingcheng ;

	@Column(name = "ftupian"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String ftupian ;

	@Column(name = "fjianjie"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fjianjie ;

	@Column(name = "fleibie"  , nullable = false)
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fleibie ;

	@Column(name = "fyuanlianj"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fyuanlianj ;

	@Column(name = "fshangjiasj"  )
@javax.persistence.Temporal(TemporalType.TIMESTAMP)
private java.util.Date fshangjiasj ;

	@Column(name = "fjiage"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.DoubleType")
private Double fjiage ;

	@Column(name = "fshichangj"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.DoubleType")
private Double fshichangj ;

	@Column(name = "fkucun"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.IntegerType")
private Integer fkucun ;

	@Column(name = "fmaijiaid"  , nullable = false)
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String fmaijiaid ;
	public String getFid() {
			return fid;
		
	}

	public void setFid(String fid) {
		this.fid = fid;
	}

	public String getFmingcheng() {
			return fmingcheng;
		
	}

	public void setFmingcheng(String fmingcheng) {
		this.fmingcheng = fmingcheng;
	}

	public String getFtupian() {
			return ftupian;
		
	}

	public void setFtupian(String ftupian) {
		this.ftupian = ftupian;
	}

	public String getFjianjie() {
			return fjianjie;
		
	}

	public void setFjianjie(String fjianjie) {
		this.fjianjie = fjianjie;
	}

	public String getFleibie() {
			return fleibie;
		
	}

	public void setFleibie(String fleibie) {
		this.fleibie = fleibie;
	}

	public String getFyuanlianj() {
			return fyuanlianj;
		
	}

	public void setFyuanlianj(String fyuanlianj) {
		this.fyuanlianj = fyuanlianj;
	}

	public java.util.Date getFshangjiasj() {
			if(fshangjiasj!=null){
				java.util.Date ret = new java.util.Date(fshangjiasj.getTime());
				return ret;
			}else{
				return null;
			}
		
	}

	public void setFshangjiasj(java.util.Date fshangjiasj) {
		this.fshangjiasj = fshangjiasj;
	}

	public Double getFjiage() {
			return fjiage;
		
	}

	public void setFjiage(Double fjiage) {
		this.fjiage = fjiage;
	}

	public Double getFshichangj() {
			return fshichangj;
		
	}

	public void setFshichangj(Double fshichangj) {
		this.fshichangj = fshichangj;
	}

	public Integer getFkucun() {
			return fkucun;
		
	}

	public void setFkucun(Integer fkucun) {
		this.fkucun = fkucun;
	}

	public String getFmaijiaid() {
			return fmaijiaid;
		
	}

	public void setFmaijiaid(String fmaijiaid) {
		this.fmaijiaid = fmaijiaid;
	}
}
